package com.itheima.exerciseTest.method01_09.method5;
/*
    青蛙类
    吃饭（吃虫子）游泳（蛙泳）
*/
public class Frog extends Animal implements Inter {
    public Frog() {
    }

    public Frog(int age) {
        super(age);
    }

    @Override
    public void drinking() {
        System.out.println("喝水");
    }

    @Override
    public void eat() {
        System.out.println("青蛙吃虫子");
    }

    @Override
    public void swimming() {
        System.out.println("青蛙会蛙泳");
    }
}
